# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gccmakedep
pkgver=1.0.3
pkgrel=0
pkgdesc="Create dependencies in makefiles using 'gcc -M'"
url="https://gitlab.freedesktop.org/xorg/util/gccmakedep"
arch="all"
license="MIT"
makedepends="automake autoconf libtool util-macros"
subpackages="$pkgname-doc"
source="https://gitlab.freedesktop.org/xorg/util/gccmakedep/-/archive/$pkgname-$pkgver/$pkgname-$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

prepare() {
	default_prepare
	sh ./autogen.sh
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="a9b2323e17a28a4621705881d8a09ff8902aaa17ca9db91cb0f68cb384989ea39d5857dd3759befab1dd0faf8b1966e7cbd503b5cf16f28cf5739f2608bdeb2f  gccmakedep-gccmakedep-1.0.3.tar.gz"
